﻿using System.Collections.Generic;

namespace OpenWaves.EPiServer.Localization
{
    public abstract class TranslationKeyCollectionBase : TranslationEntry
    {
        private readonly List<ITranslationEntry> entries = new List<ITranslationEntry>();

        protected TranslationKeyCollectionBase(string name, TranslationKeyCollectionBase parent)
            : base(name, parent)
        {
        }

        public IEnumerable<ITranslationEntry> Entries
        {
            get { return this.entries; }
        }

        protected void Add(ITranslationEntry entry)
        {
            this.entries.Add(entry);
        }
    }
}